package com.jxs.tourist.service.impl;

import com.jxs.tourist.dao.UserInfoDao;
import com.jxs.tourist.domain.UserInfo;
import com.jxs.tourist.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Autowired
    UserInfoDao userInfoDao;
    public UserInfoServiceImpl(){
        System.out.println("init");
    }
    public int editUserInfo(UserInfo userInfo) {
        return userInfoDao.editUserInfo(userInfo);
    }

    public UserInfo getUserInfoById(int user_id) {
        return userInfoDao.getUserInfoById(user_id);
    }

    public int insertUserInfo(UserInfo info) {
        return userInfoDao.insertUserInfo(info);
    }
}
